package com.geyue.core.service.impl;

import com.geyue.common.base.service.impl.BaseServiceImpl;
import com.geyue.core.mapper.FocusMapper;
import com.geyue.core.mapper.LiveMapper;
import com.geyue.core.model.Focus;
import com.geyue.core.model.Live;
import com.geyue.core.model.Student;
import com.geyue.core.service.FocusService;
import com.geyue.core.service.LiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Lyon on 2017/3/27.
 */
@Service
public class FocusServiceImpl extends BaseServiceImpl<Focus> implements FocusService {

    @Autowired
    private FocusMapper focusMapper;


    @Override
    public List<Focus> queryAll(int stuId) {

        return focusMapper.queryAll(stuId);
    }

    @Override
    public int deleteFocus(int vedioId, int stuId, int type) {

        return focusMapper.deleteFocus(vedioId,stuId,type);
    }


}
